package com.sfac.springBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.sfac.springBoot.modules.account.entity.User;
import com.sfac.springBoot.modules.common.vo.Result;
import com.sfac.springBoot.modules.common.vo.Search;

public interface UserService {
    Result<User> login(User user);
    Result<User> update(User user);
    User getUserById(int id);
    User getUserByName(String name);
    Result<User> deleteUserById(int id);
    Result<User> register(User user);
    PageInfo<User> loadAllUsers(Search Search);

}
